<?php

namespace App\Http\Controllers\Admin;

use App\Models\Orm\Apply;
use App\Models\Orm\Banner;
use App\Models\Orm\Candy;
use App\Models\Orm\Grade;
use App\Models\Orm\Market;
use App\Models\Orm\AwAuditRecord;
use App\Models\Orm\CooperativeCompany;
use App\Models\Orm\Pay;
use App\Models\Orm\Sconfig;
use App\Models\Orm\User;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Validator;

/**
 * 产品模块控制器
 *
 * Class ProductController
 * @package App\Http\Controllers\Admin
 */
class UsersController extends Controller
{
    /**
     * 产品列表(展示页)
     *
     * @return \Illuminate\Http\Response
     */
    public function index(Request $request)
    {
        $user = auth('admin')->user();

        $data = User::orderby('id', SORT_DESC)->get();
        return view('admin.users.index', compact('data'));

    }
}